package ${s.pkg};
import la.cplus.common.fsm.FSMContext;
import la.cplus.common.fsm.UnknownStateException;

public class ${s.name}Context extends FSMContext {
    private static final long serialVersionUID = 1L;

    /**
    * @param initState
    */
    protected ${s.name}Context(${s.name}State initState) {
        super(initState);
    }

    @Override
    public void enterStartState() {
        getState().entry(this);
    }

    public ${s.name}State getState() throws UnknownStateException {
        if (state == null) {
            throw new UnknownStateException();
        }
        return (${s.name}State) state;
    }

}
